package yxy.cherry.battle.module.selector;

import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.Team;

import java.util.Set;

@TargetSelectorType(Type = 0)
public class TargetSelector_00_常规目标 extends TargetSelector {

	@Override
	public Set<Fighter> target(Fighter actor, Team team, int param1, int param2) {
		// 本方
		if (actor.getTeam().equals(team)) {
			return packTarget(actor);
		}
		// 敌方
		Fighter target = get普通对手目标(actor);
		if (target != null) {
			return packTarget(target);
		}
		return null;
	}
}
